﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Zsnd.Helpers;
using MaymuseMS.DAL;

namespace MaymuseMS.Controllers {
    [Authorize()]
    public class GenericController : CustomController {
        protected string Ctrl { get { return RouteData.Values["controller"].ToString(); } }

        protected UnitOfWork unitOfWork = new UnitOfWork();

        protected override void Dispose(bool disposing) {
            unitOfWork.Dispose();
            base.Dispose(disposing);
        }
    }
}